package com.stylefeng.guns.rest.common;

import com.stylefeng.guns.api.user.UserInfoModule;

/**
 * @author shuc001
 * @Date 2019-01-21 11:02
 */
public class CurrentUser {
    public static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setInfo(String  userId){
        threadLocal.set(userId);
    }

    public static String get(){
        return threadLocal.get();
    }

}
